package cc.vicp.djx314.starfood.domain.order;

import java.io.Serializable;

import cc.vicp.djx314.starfood.domain.dish.Dish;

public class OrderDish implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8501022904541626021L;
	private Integer id;  //自增主键
	private Dish dish;  //该项所对应的菜式
	private Order order;  //该项所对应的订单
	private Integer num;  //订该菜式的数量
	private Double price;  //该类菜式当时的单价
	private Double dishSum;  //该类菜式总数量对应的总价
	private String demand;  //烹饪要求
	private boolean nowEnabled;  //现在菜式是否允许提供
	private boolean dishEnabled;  //该菜式是否有效

	public OrderDish() {
		super();
	}
	public OrderDish(Dish dish) {
		super();
		this.dish = dish;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Dish getDish() {
		return dish;
	}
	public void setDish(Dish dish) {
		this.dish = dish;
	}
	public Order getOrder() {
		return order;
	}
	public void setOrder(Order order) {
		this.order = order;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getDishSum() {
		return dishSum;
	}
	public void setDishSum(Double dishSum) {
		this.dishSum = dishSum;
	}
	public String getDemand() {
		return demand;
	}
	public void setDemand(String demand) {
		this.demand = demand;
	}
	public boolean getNowEnabled() {
		return nowEnabled;
	}
	public void setNowEnabled(boolean nowEnabled) {
		this.nowEnabled = nowEnabled;
	}
	public boolean isDishEnabled() {
		return dishEnabled;
	}
	public void setDishEnabled(boolean dishEnabled) {
		this.dishEnabled = dishEnabled;
	}
}